<template>
	<view class="address">
		<view class="list">
			<view class="item">
				<view class="top">
					<p>收货人：飞 13247127222</p>
					<p>收货地址：北京市北京市</p>
				</view>
				<view class="bottom">
					<u-checkbox-group v-model="checked">
						<u-checkbox 
							icon-color="#ffffff" 
							activeColor="red" 
							shape="circle" 
							name="1"
							label="设为默认"
						></u-checkbox>
					</u-checkbox-group>
					<view class="caozuo">
						<span>
							<u-icon name="edit-pen" size="25"></u-icon>
							编辑
						</span>
						<span>
							<u-icon name="trash" size="25"></u-icon>
							删除
						</span>
					</view>
				</view>
			</view>
		</view>
		<view class="add">
			<view class="btn" @click="addAddress">
				<span>新增收货地址</span>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked:"",
			}
		},
		methods: {
			addAddress(){
				uni.navigateTo({
					url:"/pages/user/user-addressadd"
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.add{
		width:100%;
		position:fixed;
		bottom:0;
		height:60px;
		background-color:#ffffff;
		.btn{
			text-align:center;
			line-height:40px;
			height:40px;
			width:80%;
			background-color:#ff0000;
			margin:10px auto;
			color:#ffffff;
			border-radius:20px;
		}
	}
	.address {
		width: 100%;
		height: 100vh;
		overflow: hidden;
		background-color: #f5f5f5;

		.list {
			.item {
				width: 95%;
				margin: 10px auto;
				border-radius:10px;
				background-color: #ffffff;
				.top {
					line-height: 30px;
					border-bottom: 1px solid #f0f0f0;
					padding: 5px;
				}
				.bottom{
					display:flex;
					align-items:center;
					justify-content:space-between;
					padding:10px;
					.caozuo{
						display:flex;
						align-items:center;
						span{
							display:flex;
							align-items:center;
							margin:0 10px;
						}
					}
				}
			}
		}
	}
</style>